package com.order.mapper;

import com.order.dao.DishType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishTypeMapper {
//    增
     int addDishType(DishType dishType);
//    删
     int deleteDishType(int id);
//    改
     int updateDishType(DishType dishType);
//    查
     List<DishType> getDishTypes(DishType dishType);

    //    判断是否成功
     int judgment(String name);

     List<DishType> getAllDishTypes();


}
